import http from '@/utils/http'

//新增地址函数
export const reqAddress = (data) => {
  return http.post('/userAddress/save', data)
}

//收获地址列表
export const reqAddressList = () => {
  return http.get('/userAddress/findUserAddress')
}

//收获地址详情
export const reqAddressDetail = (id) => {
  return http.get(`/userAddress/${id}`)
}

//更新地址
export const reqUpdateAdress = (data) => {
  return http.post('/userAddress/update', data)
}
//删除地址
export const reqDeleteAdress = (id) => {
  return http.get(`/userAddress/delete/${id}`)
}
